#!/usr/bin/env python
# encoding: utf-8


from django import forms

#  name 最大长度25
#  email to 都是邮件格式
# comments 内容 非必须
class EmailPostForm(forms.Form):
    name = forms.CharField(max_length=25)
    email = forms.EmailField()
    to = forms.EmailField()
    comments = forms.CharField(required=False,
                               widget=forms.Textarea)  # <textarea></textarea> 默认是<input>

